import request from '@/utils/request'

// 查询知识点设置列表
export function listPoints(query) {
  return request({
    url: '/basice_info/points/list',
    method: 'get',
    params: query
  })
}

// 查询知识点设置详细
export function getPoints(knowledgePointsId) {
  return request({
    url: '/basice_info/points/' + knowledgePointsId,
    method: 'get'
  })
}

// 新增知识点设置
export function addPoints(data) {
  return request({
    url: '/basice_info/points',
    method: 'post',
    data: data
  })
}

// 修改知识点设置
export function updatePoints(data) {
  return request({
    url: '/basice_info/points',
    method: 'put',
    data: data
  })
}

// 删除知识点设置
export function delPoints(knowledgePointsId) {
  return request({
    url: '/basice_info/points/' + knowledgePointsId,
    method: 'delete'
  })
}
